﻿//-----------------------------------------------------------------------
// <copyright file="UserRepository.cs" company="deixei.com">
//     Copyright (c) deixei.com. All rights reserved.
// </copyright>
// <author>Marcio Parente</author>
//--------------------------------------------------------------------
namespace Deixei.Domain.Repository
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    public class UserRepository : Repository<User>, IUserRepository
    {
        public UserRepository(IUnitOfWork unitOfWork)
            : base(unitOfWork)
        {
        }

        public IQueryable<User> ByApplication(string ApplicationName)
        {
            return this.Find(row => row.Application.Name == ApplicationName);
        }
    }

    public interface IUserRepository : IRepository<User>
    {
    }
}